﻿#include "DATestNode.h"
#include "DATestNodeGraphicsItem.h"
#include "DANodeLinkPoint.h"
#define RES_ICON ":/icon/icon/test.svg"
DATestNode::DATestNode() : DAAbstractNode()
{
    metaData().setIcon(QIcon(RES_ICON));
    metaData().setNodePrototype("DA.Test.3in2out");
    metaData().setNodeName(QObject::tr("Test1"));
    metaData().setGroup(QObject::tr("test"));
    m_input << "in 1"
            << "in 2"
            << "in 3";
    m_output << "out 1"
             << "out 2";
}

QList<QString> DATestNode::getInputKeys() const
{
    return (m_input);
}

QList<QString> DATestNode::getOutputKeys() const
{
    return (m_output);
}

DAAbstractNodeGraphicsItem *DATestNode::createGraphicsItem()
{
    return (new DATestNodeGraphicsItem(std::dynamic_pointer_cast<DATestNode>(shared_from_this())));
}

DADataPackage DATestNode::output(const QString &ouputkey)
{
    Q_UNUSED(ouputkey);
    return (DADataPackage());
}
